public class person {
    private String name="";
    private String sex="";
    private int age=30;
    private boolean married=true;

    public person(){}
    public String getName(){

        return name;
    }
    public void setName(String name){

        this.name=name;
    }
    public String getSex(){

        return sex;
    }
    public int getAge(){

        return age;
    }
    public void setAge(int age){

        this.age = age;
    }
    public boolean isMarried(){

        return married;
    }
    public void setMarried(boolean married){

        this.married = married;
    }
}